package com.ruoyi.common.core.Entity;

/*
  商品库存实体类（每一个商品个体）
*/

import com.ruoyi.common.core.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

/*
   实体商品库存明细实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GoodsStock {

    @Excel(name = "库存商品个体ID")
    private long item_id; //库存个体ID
    @Excel(name = "库存商品个体所属的商品ID")
    private long goods_id; //库存个体所属的商品ID
    @Excel(name = "库存商品个体所属的商店ID")
    private long store_id; //库存个体所属的商店ID
    @Excel(name = "库存商品个体所属的商店ID")
    private String goods_name; //库存商品个体所属的商品名
    @Excel(name = "是否已经售卖")
    private boolean have_been_sold; //是否已经售卖
    @Excel(name = "所属售出订单ID")
    private long sold_order_id; //所属售出订单ID
    @Excel(name = "添加时间")
    private Timestamp add_time; //添加时间
    @Excel(name = "售出时间")
    private Timestamp sold_time; //售出时间
    private boolean del_flag; //删除标志（ 0未删除，1已删除）

    private Map<String,Object> params; //请求参数

    public Map<String, Object> getParams() {
        if (params == null) {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params) {
        this.params = params;
    }
}
